function Player() {}

Player.prototype.setBaseURL = (url) => {
  this.url = url;
};
Player.prototype.setValue = async (val) => {
  const dataUrl = `${this.url}/${val}`;
  const data = await (await fetch(dataUrl)).text();
  const decode = atob(data);

  console.log(decode);
};
